@/*
表单中input框标签中各个参数的说明:

hidden : input hidden框的id
id : input框id
name : input框名称
readonly : readonly属性
clickFun : 点击事件的方法名
style : 附加的css属性
@*/
<div id="${id}" name="${id}">
    @for(item in list){
    <div value="${item.id}" style="margin: 5px;">
        <span style="display: inline-block;width: 12%">${item.customerName}</span>
        <span style="display: inline-block;width: 20%">${item.customerPhone}</span>
        <span style="display: inline-block;width: 11%">${item.phoneSharShip}</span>
        <span style="display: inline-block;width: 10%">${item.sex}</span>
        <span style="display: inline-block;width: 10%">${item.customerAge}</span>
        <button type="button" value="${item.id}" id="add${item.id}" class="btn add${item.id}"
                style="padding: 2px 12px;margin: 0;color: white;background: #2eadd0;">预约</button>
    </div>
    <script>
        var add${item.id} = document.getElementsByClassName('add${item.id}')[0];    //加
        add${item.id}.onclick = function () {
            var index = layer.open({
                type: 2,
                title: '添加到店客户',
                area: ['90%', '90%'], //宽高
                fix: true, //不固定
                maxmin: true,
                content: Feng.ctxPath + '/customer/customer_add/' + document.getElementById('add${item.id}').value
            });
            this.layerIndex = index;
        };
    </script>
    @}
</div>
@if(isNotEmpty(underline) && underline == 'true'){
<div class="hr-line-dashed"></div>
@}


